const fs = require('fs')
const path = require('path')

var reader = fs.createReadStream(path.join(__dirname,'test333'))

var writer = fs.createWriteStream(path.join(__dirname,'test444'));

var writer2 = fs.createWriteStream(path.join(__dirname,'test555'));

writer.on('pipe',(src)=>{
   console.log(src === reader)
})


reader.pipe(writer);
reader.pipe(writer2);